CREATE TABLE [dbo].[TblAnswers]
(
[ID] [uniqueidentifier] NOT NULL,
[QuestionID] [uniqueidentifier] NULL,
[Answer] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[UserName] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Date] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[TblAnswers] ADD CONSTRAINT [PK_TblAnswers] PRIMARY KEY CLUSTERED  ([ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TblAnswers] ADD CONSTRAINT [FK_TblAnswers_TblQuestions] FOREIGN KEY ([QuestionID]) REFERENCES [dbo].[TblQuestions] ([ID]) ON DELETE CASCADE ON UPDATE CASCADE
GO
